* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #fff;
    overflow-x: hidden;
    background-color: #0a0a0a;
}

/* 背景动画 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    z-index: -2;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0, 255, 157, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 157, 0.1) 0%, transparent 20%);
    animation: particles 20s linear infinite;
    }
    
    .particles::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background:
            radial-gradient(circle at 50% 50%, rgba(0, 255, 157, 0.05) 0%, transparent 30%),
            repeating-linear-gradient(45deg, transparent 0px, transparent 2px, rgba(0, 255, 157, 0.03) 2px, rgba(0, 255, 157, 0.03) 4px);
        animation: grid 20s linear infinite;
    }
    
    .particles::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background:
            radial-gradient(circle at 30% 70%, rgba(0, 255, 157, 0.05) 0%, transparent 25%),
            repeating-linear-gradient(-45deg, transparent 0px, transparent 2px, rgba(0, 255, 157, 0.03) 2px, rgba(0, 255, 157, 0.03) 4px);
        animation: grid 20s linear infinite reverse;
    }

@keyframes particles {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100px, 100px);
    }
}

@keyframes grid {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* 添加动态光效 */
.glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 157, 0.2) 0%, transparent 70%);
    filter: blur(20px);
    animation: glowMove 15s ease-in-out infinite;
}

.glow:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.glow:nth-child(2) {
    top: 60%;
    left: 60%;
    animation-delay: -5s;
}

.glow:nth-child(3) {
    top: 40%;
    left: 80%;
    animation-delay: -10s;
}

@keyframes glowMove {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, 50px) scale(1.2);
    }

    50% {
        transform: translate(0, 100px) scale(1);
    }

    75% {
        transform: translate(-50px, 50px) scale(0.8);
    }
}

/* 导航栏样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.logo i {
    color: #00ff9d;
    margin-right: 0.5rem;
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ff9d;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 255, 157, 0.1), rgba(0, 0, 0, 0.5));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
    }

    to {
        text-shadow: 0 0 20px rgba(0, 255, 157, 0.8);
    }
}

.hero p {
    font-size: 1.5rem;
    color: #ccc;
}

/* 游戏分类样式 */
.game-categories {
    padding: 5rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 157, 0.1));
    z-index: -1;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 255, 157, 0.2);
}

.category-icon {
    font-size: 3rem;
    color: #00ff9d;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.category-card p {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.game-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid #00ff9d;
    color: #00ff9d;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.game-link:hover {
    background: #00ff9d;
    color: #000;
}

/* 热门推荐样式 */
.featured-games {
    padding: 5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
}

.featured-games h4 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.5rem;
}

.game-slider {
    max-width: 1200px;
    margin: 0 auto;
}

.game-preview {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.game-preview img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.game-preview:hover img {
    transform: scale(1.05);
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.game-info p {
    color: #00ff9d;
}

/* 页脚样式 */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #00ff9d;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #00ff9d;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .game-categories {
        grid-template-columns: 1fr;
    }
}